<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<%@ taglib prefix="sec"
	uri="http://www.springframework.org/security/tags"%>

<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>

<p>Modifica i campi e premi invia...</p>

<hr />

<form:form method="post" commandName="contatto" action="saveContatto.htm" id="userForm" class="f-wrap-1">
	<form:hidden path="id"/>

	<div class="req">
		Il simbolo <b>*</b> Indica dei campi obbligatori
	</div>

	<fieldset>

		<h3>Contatto</h3>

		<label for="nome"><b><span class="req">*</span>
			Nome:</b> <form:input path="nome" type="text"
			class="f-name" tabindex="1" />
			<form:errors path="nome"/>
			<br /> 
		</label> 
				
		<label for="cognome"><b><span
				class="req">*</span>
			Cognome:</b> <form:input path="cognome"
			type="text" class="f-name" tabindex="2" />
			<form:errors path="cognome"/>	
			<br /> 
		</label>	
		
		<label for="email"><b><span
				class="req">*</span>
			E-mail:</b> <form:input path="email"
			type="text" class="f-name" tabindex="3" />
			<form:errors path="email"/>	
			<br /> 
		</label>
		
		<label for="dataNascita"><b>
			Data Di Nascita:</b> <form:input path="dataNascita"
			type="text" class="f-name" tabindex="4" />
			<form:errors path="dataNascita"/>	
			<br /> 
		</label>
		
		<label for="telefono"><b>
			Telefono:</b> <form:input path="telefono"
			type="text" class="f-name" tabindex="5" />
			<form:errors path="telefono"/>	
			<br /> 
		</label>
		
		<label for="indirizzo"><b>
			Indirizzo:</b> <form:input path="indirizzo"
			type="text" class="f-name" tabindex="6" />
			<form:errors path="indirizzo"/>	
			<br /> 
		</label>
		
		<label for="lavoro"><b>
			Lavoro:</b> 
			<form:select path="lavoro" class="f-name" tabindex="7" >
				<form:option value="-">Seleziona Lavoro</form:option>
				<form:options items="${lavoroList}" itemValue="id" itemLabel="descrizione"/>
			</form:select>
			<form:errors path="indirizzo"/>	
			<br /> 
		</label>
		
		<label for="parrocchia"><b>
			Parrocchia:</b> 
			<form:select path="parrocchia" class="f-name" tabindex="8" >
				<form:option value="-">Seleziona Parrocchia</form:option>
				<form:options items="${parrocchiaList}" itemValue="id" itemLabel="descrizione"/>
			</form:select>
			<form:errors path="indirizzo"/>	
			<br /> 
		</label>

<!--     @Enumerated -->
<!--     private StatoCivileType statoCivile; -->
		
		<label for="preferenze"><b>
			Preferenze:</b> 
				<span class="checkboxes-wrapper">
					<form:checkboxes path="preferenze" items="${preferenzaList}" itemLabel="descrizione" itemValue="id" tabindex="9" />
				</span>
			
			<br /> 
		</label>
		
		<label for="attivita"><b>
			Attivita:</b> 
				<span class="checkboxes-wrapper">
					<form:checkboxes path="attivita" items="${attivitaList}" itemLabel="descrizione" itemValue="id" tabindex="12" />
				</span>
			
			<br /> 
		</label>
			
		<label for="hobbies"><b>
			Hobby:</b> 
				<span class="checkboxes-wrapper">
					<form:checkboxes path="hobbies" items="${hobbyList}" itemLabel="descrizione" itemValue="id" tabindex="10" />
				</span>
			
			<br /> 
		</label>
		
		<label for="mailingListList"><b>
			MailingList:</b> 
				<span class="checkboxes-wrapper">
					<form:checkboxes path="mailingList" items="${mailingListList}" itemLabel="descrizione" itemValue="id" tabindex="13" />
				</span>
			
			<br /> 
		</label>

	</fieldset>
	<br />

	<div class="f-submit-wrap">
		<input type="submit" value="Invia" class="f-submit" tabindex="12" /><br />
	</div>
</form:form>

